Reset Script vs State Entry

October 11, 2009 · 37 views · 0 comments

Reset Script vs State Entry
taken by : Dedric Mauriac on Woodbridge (9, 5, 99)
blog
HUD!

About

I've been able to cut my scripts initial memory down so that I have about 41k available. Originally I had about 25k available. The primary tips are to reduce the need for functions, global variables, lists, and string length. The other thing to cut back on is the amount of features you are starting off with. Keep the script as simple as possible. The shocker for me today was the memory consumption of llResetScript. I found that in some cases, I could replace it with a state change back to the default state with a memory savings of over 500 bytes. Other times, this method had no effect at all. This confuses me. Why is this method so memory intensive sometimes? From Dedric Mauriac via bloghud.com